// pages/seek/seek.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {
    clicknum: 0,
    imgUrls: [
      'http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg',
      'http://img06.tooopen.com/images/20160818/tooopen_sy_175866434296.jpg',
      'http://img06.tooopen.com/images/20160818/tooopen_sy_175833047715.jpg'
    ],
    hotlist: [
      { title: "【2018-02-24】新闻公告标题新闻公告标题1", id: "1" },
      { title: "【2018-02-25】新闻公告标题新闻公告标题2", id: "2" },
      { title: "【2018-02-26】新闻公告标题新闻公告标题新闻公告标题新闻公告标题33", id: "3" },
    ],
    recommendnav: [
      { name: '冷冻食材', id: '1' },
      { name: '生鲜食材', id: '1' },
      { name: '米面粮油', id: '1' },
      { name: '酒水饮料', id: '1' },
      { name: '厨房用品', id: '1' },
      { name: 'MORE+', id: '1' }
    ],
    seeklist:[
      { title: '海鲜海鲜海鲜海鲜海鲜海鲜海鲜海鲜', num: '1000件' },
      { title: '海鲜海鲜海鲜海鲜海鲜海鲜海鲜海鲜', num: '1000件' },
      { title: '海鲜海鲜海鲜海鲜海鲜海鲜海鲜海鲜', num: '1000件' },
      { title: '海鲜海鲜海鲜海鲜海鲜海鲜海鲜海鲜', num: '1000件' },
      { title: '海鲜海鲜海鲜海鲜海鲜海鲜海鲜海鲜', num: '1000件' },
      { title: '海鲜海鲜海鲜海鲜海鲜海鲜海鲜海鲜', num: '1000件' }
    ],
    gylist: [
      { title: '海鲜海鲜海鲜海鲜海鲜海鲜海鲜海鲜', num: '1000件', img: '../../resource/image/cp2.jpg', gys: '众源实业', price:19.9 },
      { title: '海鲜海鲜海鲜海鲜海鲜海鲜海鲜海鲜', num: '1000件', img: '../../resource/image/cp2.jpg', gys: '众源实业', price: 19.9 },
      { title: '海鲜海鲜海鲜海鲜海鲜海鲜海鲜海鲜', num: '1000件', img: '../../resource/image/cp2.jpg', gys: '众源实业', price: 19.9 },
      { title: '海鲜海鲜海鲜海鲜海鲜海鲜海鲜海鲜', num: '1000件', img: '../../resource/image/cp2.jpg', gys: '众源实业', price: 19.9 },
      { title: '海鲜海鲜海鲜海鲜海鲜海鲜海鲜海鲜', num: '1000件', img: '../../resource/image/cp2.jpg', gys: '众源实业', price: 19.9 },
      { title: '海鲜海鲜海鲜海鲜海鲜海鲜海鲜海鲜', num: '1000件', img: '../../resource/image/cp2.jpg', gys: '众源实业', price: 19.9 }
    ]
  },

  /**
   * 组件的方法列表
   */
  methods: {
    gosearch: function () {
      wx.navigateTo({
        // url: '../jobDetail/jobDetail?id=' + that.data.org_id,
        url: '../searchpage/searchpage'
      })
    },
    onShareAppMessage: function () {
      return {
        title: '餐饮酒店B2B云智能采购平台小程序!',
        desc: '众源实业'
      }
    },
    navclick: function (e) {
      this.setData({ 'clicknum': e.currentTarget.dataset.index })
    },
    onReachBottom: function () {
      var that = this;
      // // 显示加载图标
      // wx.showLoading({
      //   title: '玩命加载中',
      // })
    }
  }
})
